import matplotlib.pyplot as plt
import random
import numpy as np

y_1 = [i for i in range(10)]

y_2 = [i + random.random() for i in range(10)]

x = range(0,10)
y_3 = 5*np.sin(x)

y_4 = [random.random()  for _ in range(10)]


# fig = plt.figure()
# ax1 = fig.add_subplot(2, 2,1)
# ax1.plot(y_1)
# ax2 = fig.add_subplot(2, 2,2)
# ax2.plot(y_2)

fig, axs = plt.subplots(2, 2)
axs[0][0].plot(y_1)
axs[0][1].plot(y_2)





# plt.plot(y_1,label='y_1')
# plt.plot(y_2,label='y_2')
# plt.plot(y_3,label='y_3')
# plt.plot(y_4,label='y_4')
# plt.legend()
plt.show()



